package com.lanou3g.bean;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
@JsonIgnoreProperties({"handler","hibernateLazyInitializer"})
public class Person{
	private Integer id;
	private String name;
	private String phone;
	private String email;
	private String sex;
	private String address;
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date birthday;
	private Integer componyId;
	private Integer flatsId;
	private Compony compony;
	private Flats flats;
	
	
	public Flats getFlats() {
		return flats;
	}
	public void setFlats(Flats flats) {
		this.flats = flats;
	}
	public Compony getCompony() {
		return compony;
	}
	public void setCompony(Compony compony) {
		this.compony = compony;
	}
	public Integer getComponyId() {
		return componyId;
	}
	public void setComponyId(Integer componyId) {
		this.componyId = componyId;
	}
	public Integer getFlatsId() {
		return flatsId;
	}
	public void setFlatsId(Integer flatsId) {
		this.flatsId = flatsId;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public Date getBirthday() {
		return birthday;
	}
	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}
	public Person() {
		super();
	}
	@Override
	public String toString() {
		return "Person [id=" + id + ", name=" + name + ", phone=" + phone + ", email=" + email + ", sex=" + sex
				+ ", address=" + address + ", birthday=" + birthday + ", componyId=" + componyId + ", flatsId="
				+ flatsId + "]";
	}
	
	
}
